<template>
    <el-select v-model="value" v-bind="$attrs.data.extra">
        <el-option v-for="each in $attrs.data.options" :label="each.label" :value="each.value" :key="each.value"></el-option>
        <!-- <el-option label="区域二" value="beijing"></el-option> -->
    </el-select>
</template>
<script>
export default {
    props: ['keyName'],
    data() {
        return {
            value: ''
        }
    },
    watch: {
        value(newVal) {
            this.$attrs.model[this.keyName] = newVal;
            console.log(this.$attrs)
        }
    },
}

</script>